﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E5D RID: 3677
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueArea : IMessage<RogueArea>, IMessage, IEquatable<RogueArea>, IDeepCloneable<RogueArea>, IBufferMessage
	{
		// Token: 0x17002EBE RID: 11966
		// (get) Token: 0x0600A524 RID: 42276 RVA: 0x001BD017 File Offset: 0x001BB217
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueArea> Parser
		{
			get
			{
				return RogueArea._parser;
			}
		}

		// Token: 0x17002EBF RID: 11967
		// (get) Token: 0x0600A525 RID: 42277 RVA: 0x001BD01E File Offset: 0x001BB21E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueAreaReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002EC0 RID: 11968
		// (get) Token: 0x0600A526 RID: 42278 RVA: 0x001BD030 File Offset: 0x001BB230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueArea.Descriptor;
			}
		}

		// Token: 0x0600A527 RID: 42279 RVA: 0x001BD037 File Offset: 0x001BB237
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueArea()
		{
		}

		// Token: 0x0600A528 RID: 42280 RVA: 0x001BD040 File Offset: 0x001BB240
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueArea(RogueArea other) : this()
		{
			this.areaStatus_ = other.areaStatus_;
			this.rogueStatus_ = other.rogueStatus_;
			this.areaId_ = other.areaId_;
			this.hasTakenReward_ = other.hasTakenReward_;
			this.lBHJLPCJDPA_ = other.lBHJLPCJDPA_;
			this.mapId_ = other.mapId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A529 RID: 42281 RVA: 0x001BD0AC File Offset: 0x001BB2AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueArea Clone()
		{
			return new RogueArea(this);
		}

		// Token: 0x17002EC1 RID: 11969
		// (get) Token: 0x0600A52A RID: 42282 RVA: 0x001BD0B4 File Offset: 0x001BB2B4
		// (set) Token: 0x0600A52B RID: 42283 RVA: 0x001BD0BC File Offset: 0x001BB2BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAreaStatus AreaStatus
		{
			get
			{
				return this.areaStatus_;
			}
			set
			{
				this.areaStatus_ = value;
			}
		}

		// Token: 0x17002EC2 RID: 11970
		// (get) Token: 0x0600A52C RID: 42284 RVA: 0x001BD0C5 File Offset: 0x001BB2C5
		// (set) Token: 0x0600A52D RID: 42285 RVA: 0x001BD0CD File Offset: 0x001BB2CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueStatus RogueStatus
		{
			get
			{
				return this.rogueStatus_;
			}
			set
			{
				this.rogueStatus_ = value;
			}
		}

		// Token: 0x17002EC3 RID: 11971
		// (get) Token: 0x0600A52E RID: 42286 RVA: 0x001BD0D6 File Offset: 0x001BB2D6
		// (set) Token: 0x0600A52F RID: 42287 RVA: 0x001BD0DE File Offset: 0x001BB2DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x17002EC4 RID: 11972
		// (get) Token: 0x0600A530 RID: 42288 RVA: 0x001BD0E7 File Offset: 0x001BB2E7
		// (set) Token: 0x0600A531 RID: 42289 RVA: 0x001BD0EF File Offset: 0x001BB2EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool HasTakenReward
		{
			get
			{
				return this.hasTakenReward_;
			}
			set
			{
				this.hasTakenReward_ = value;
			}
		}

		// Token: 0x17002EC5 RID: 11973
		// (get) Token: 0x0600A532 RID: 42290 RVA: 0x001BD0F8 File Offset: 0x001BB2F8
		// (set) Token: 0x0600A533 RID: 42291 RVA: 0x001BD100 File Offset: 0x001BB300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LBHJLPCJDPA
		{
			get
			{
				return this.lBHJLPCJDPA_;
			}
			set
			{
				this.lBHJLPCJDPA_ = value;
			}
		}

		// Token: 0x17002EC6 RID: 11974
		// (get) Token: 0x0600A534 RID: 42292 RVA: 0x001BD109 File Offset: 0x001BB309
		// (set) Token: 0x0600A535 RID: 42293 RVA: 0x001BD111 File Offset: 0x001BB311
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MapId
		{
			get
			{
				return this.mapId_;
			}
			set
			{
				this.mapId_ = value;
			}
		}

		// Token: 0x0600A536 RID: 42294 RVA: 0x001BD11A File Offset: 0x001BB31A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueArea);
		}

		// Token: 0x0600A537 RID: 42295 RVA: 0x001BD128 File Offset: 0x001BB328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueArea other)
		{
			return other != null && (other == this || (this.AreaStatus == other.AreaStatus && this.RogueStatus == other.RogueStatus && this.AreaId == other.AreaId && this.HasTakenReward == other.HasTakenReward && this.LBHJLPCJDPA == other.LBHJLPCJDPA && this.MapId == other.MapId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A538 RID: 42296 RVA: 0x001BD1B4 File Offset: 0x001BB3B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaStatus != RogueAreaStatus.Lock)
			{
				num ^= this.AreaStatus.GetHashCode();
			}
			if (this.RogueStatus != RogueStatus.None)
			{
				num ^= this.RogueStatus.GetHashCode();
			}
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.HasTakenReward)
			{
				num ^= this.HasTakenReward.GetHashCode();
			}
			if (this.LBHJLPCJDPA != 0U)
			{
				num ^= this.LBHJLPCJDPA.GetHashCode();
			}
			if (this.MapId != 0U)
			{
				num ^= this.MapId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A539 RID: 42297 RVA: 0x001BD27D File Offset: 0x001BB47D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A53A RID: 42298 RVA: 0x001BD285 File Offset: 0x001BB485
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A53B RID: 42299 RVA: 0x001BD290 File Offset: 0x001BB490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AreaStatus != RogueAreaStatus.Lock)
			{
				output.WriteRawTag(48);
				output.WriteEnum((int)this.AreaStatus);
			}
			if (this.HasTakenReward)
			{
				output.WriteRawTag(72);
				output.WriteBool(this.HasTakenReward);
			}
			if (this.RogueStatus != RogueStatus.None)
			{
				output.WriteRawTag(80);
				output.WriteEnum((int)this.RogueStatus);
			}
			if (this.MapId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.MapId);
			}
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.AreaId);
			}
			if (this.LBHJLPCJDPA != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.LBHJLPCJDPA);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A53C RID: 42300 RVA: 0x001BD35C File Offset: 0x001BB55C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaStatus != RogueAreaStatus.Lock)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AreaStatus);
			}
			if (this.RogueStatus != RogueStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.RogueStatus);
			}
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.HasTakenReward)
			{
				num += 2;
			}
			if (this.LBHJLPCJDPA != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LBHJLPCJDPA);
			}
			if (this.MapId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MapId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A53D RID: 42301 RVA: 0x001BD408 File Offset: 0x001BB608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueArea other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaStatus != RogueAreaStatus.Lock)
			{
				this.AreaStatus = other.AreaStatus;
			}
			if (other.RogueStatus != RogueStatus.None)
			{
				this.RogueStatus = other.RogueStatus;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.HasTakenReward)
			{
				this.HasTakenReward = other.HasTakenReward;
			}
			if (other.LBHJLPCJDPA != 0U)
			{
				this.LBHJLPCJDPA = other.LBHJLPCJDPA;
			}
			if (other.MapId != 0U)
			{
				this.MapId = other.MapId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A53E RID: 42302 RVA: 0x001BD4A8 File Offset: 0x001BB6A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A53F RID: 42303 RVA: 0x001BD4B4 File Offset: 0x001BB6B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 48U)
					{
						this.AreaStatus = (RogueAreaStatus)input.ReadEnum();
						continue;
					}
					if (num == 72U)
					{
						this.HasTakenReward = input.ReadBool();
						continue;
					}
					if (num == 80U)
					{
						this.RogueStatus = (RogueStatus)input.ReadEnum();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.MapId = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.AreaId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.LBHJLPCJDPA = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004329 RID: 17193
		private static readonly MessageParser<RogueArea> _parser = new MessageParser<RogueArea>(() => new RogueArea());

		// Token: 0x0400432A RID: 17194
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400432B RID: 17195
		public const int AreaStatusFieldNumber = 6;

		// Token: 0x0400432C RID: 17196
		private RogueAreaStatus areaStatus_;

		// Token: 0x0400432D RID: 17197
		public const int RogueStatusFieldNumber = 10;

		// Token: 0x0400432E RID: 17198
		private RogueStatus rogueStatus_;

		// Token: 0x0400432F RID: 17199
		public const int AreaIdFieldNumber = 13;

		// Token: 0x04004330 RID: 17200
		private uint areaId_;

		// Token: 0x04004331 RID: 17201
		public const int HasTakenRewardFieldNumber = 9;

		// Token: 0x04004332 RID: 17202
		private bool hasTakenReward_;

		// Token: 0x04004333 RID: 17203
		public const int LBHJLPCJDPAFieldNumber = 15;

		// Token: 0x04004334 RID: 17204
		private uint lBHJLPCJDPA_;

		// Token: 0x04004335 RID: 17205
		public const int MapIdFieldNumber = 12;

		// Token: 0x04004336 RID: 17206
		private uint mapId_;
	}
}
